package dln.stat;

import java.util.Map;

import dao.hb.BxMidle;
import dao.hb.UUser;

public class StaBxmidle {
    /**
     * 申请人
     */
    private UUser user;
    /**
     * 统计类别 如 部门、月份
     */
    private String name;
    /**
     * 申请人与报销单据对应的map
     */
    private Map<String, BxMidle> userBxMap;

    public UUser getUser() {
        return user;
    }

    public void setUser(UUser user) {
        this.user = user;
    }

    public Map<String, BxMidle> getUserBxMap() {
        return userBxMap;
    }

    public void setUserBxMap(Map<String, BxMidle> userBxMap) {
        this.userBxMap = userBxMap;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // 不在类加泛型，减少复杂度
    public <T> void setKey(T key) {
    	if (key == null) {
    		user = null;
    		name = null;
    	}
    	if(key instanceof String)
    		name = (String) key;
    	else
    		user = (UUser) key;
    }
    
}